#!/bin/bash
set_dns() {
flag=yes
while true; do
read -p "输入节点的IP地址" address
read -p "输入节点的DNS名称  " dns
echo $address $dns >> test.txt
read -p "是否继续(按q退出)" flag
if [ $flag  == 'q'  ];then
  break
fi
done
}
